Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
pipe = pipeline(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
def respond(
|
| 7 |
message,
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
+
pipe = pipeline(
|
| 5 |
+
task="text-generation",
|
| 6 |
+
model="UpMath/Thai-HomeworkGen-v3",
|
| 7 |
+
device_map="auto",
|
| 8 |
+
trust_remote_code=True
|
| 9 |
+
)
|
| 10 |
|
| 11 |
def respond(
|
| 12 |
message,
|