minjibi commited on
Commit
8f99a74
·
1 Parent(s): 9581f16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
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
- examples = [
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()