muhammadfaysal5 commited on
Commit
d9436d0
·
1 Parent(s): 73a8b90

app.py changed

Browse files
Files changed (2) hide show
  1. .gradio/flagged/dataset1.csv +2 -0
  2. app.py +2 -4
.gradio/flagged/dataset1.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ prompt,output,timestamp
2
+ where is afghanistan?,where is afghanistan? where is the country? where are the syrians in the u.s.?,2025-05-23 14:47:17.439072
app.py CHANGED
@@ -12,7 +12,5 @@ def predict(prompt):
12
 
13
 
14
  # create an interface for the model
15
- with gr.Blocks() as demo:
16
- textbox = gr.Textbox(placeholder="Enter the text to summurize ",lines=4)
17
- gr.Interface(fn=predict, inputs="textbox", outputs="text")
18
- demo.launch()
 
12
 
13
 
14
  # create an interface for the model
15
+ with gr.Interface(predict, "textbox", "text") as interface:
16
+ interface.launch()