Update app.py
Browse files
app.py
CHANGED
@@ -43,13 +43,6 @@ def predict(text):
|
|
43 |
final_str = '\n'.join([f"{i+1}. Question: {s.split('Answer')[0].strip()}\n Answer{s.split('Answer')[1].strip()}" for i, s in enumerate(output)])
|
44 |
|
45 |
return final_str
|
46 |
-
|
47 |
-
|
48 |
-
{
|
49 |
-
"input": "วันนี้อากาศดีจัง",
|
50 |
-
"output": "1. Question: อากาศวันนี้เป็นอย่างไร\n Answer: ดี"
|
51 |
-
}
|
52 |
-
]
|
53 |
-
|
54 |
-
iface = gr.Interface(fn=predict, inputs="text", outputs="text", examples=examples)
|
55 |
iface.launch()
|
|
|
43 |
final_str = '\n'.join([f"{i+1}. Question: {s.split('Answer')[0].strip()}\n Answer{s.split('Answer')[1].strip()}" for i, s in enumerate(output)])
|
44 |
|
45 |
return final_str
|
46 |
+
|
47 |
+
iface = gr.Interface(fn=predict, inputs="text", outputs="text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
iface.launch()
|