mksaad commited on
Commit
ee9673c
·
verified ·
1 Parent(s): a0b7f75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -62,9 +62,15 @@ def summarize(link):
62
  summary = pipe(f"summarize the following news into bullet points {text}")
63
  return summary
64
 
65
- demo = gr.interface(fn=summarize, inputs="textbox", outputs="textbox")
66
 
67
- if __name__ == "__main__":
68
- demo.launch()
69
 
70
- # gr.load("models/meta-llama/Llama-3.2-1B").launch()
 
 
 
 
 
 
 
 
62
  summary = pipe(f"summarize the following news into bullet points {text}")
63
  return summary
64
 
 
65
 
66
+ demo = gr.Interface(fn=summarize, inputs="text", outputs="json")
67
+ demo.launch()
68
 
69
+
70
+
71
+
72
+ # demo = gr.interface(fn=summarize, inputs="textbox", outputs="textbox")
73
+ # if __name__ == "__main__":
74
+ # demo.launch()
75
+
76
+ # # gr.load("models/meta-llama/Llama-3.2-1B").launch()