Spaces:
Runtime error
Runtime error
Commit
·
33ef101
1
Parent(s):
0cf6546
changed llm model test
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from typing import List, Dict, Tuple
|
|
4 |
from flask import Flask, request, jsonify
|
5 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
6 |
import threading
|
|
|
7 |
|
8 |
# Define the API URL to use the internal server
|
9 |
API_URL = "http://localhost:5000/chat"
|
|
|
4 |
from flask import Flask, request, jsonify
|
5 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
6 |
import threading
|
7 |
+
import torch
|
8 |
|
9 |
# Define the API URL to use the internal server
|
10 |
API_URL = "http://localhost:5000/chat"
|