Spaces:
Runtime error
Runtime error
project2you
commited on
Commit
•
cbf9d10
1
Parent(s):
4632579
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1 @@
|
|
1 |
-
from transformers import pipeline, Conversation
|
2 |
-
import gradio as gr
|
3 |
|
4 |
-
question = "การผลิตปลากระป๋องจัดเป็นอาชีพใด"
|
5 |
-
context = "ถามตอบ"
|
6 |
-
|
7 |
-
question_answerer = pipeline("question-answering", model="project2you/1_0_thai_llm2-gpt")
|
8 |
-
|
9 |
-
question_answerer(question=question, context=context)
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|