Karthi commited on
Commit
290096d
1 Parent(s): a005d28

pipeline("text-generation", model="Writer/Palmyra-Med-70B-32K")

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- generator = pipeline("summarization", model="Falconsai/medical_summarization")
5
 
6
  def generate_response(input_text):
7
  response = generator(input_text, max_length=50)
8
  return response[0]['generated_text1']
9
 
10
  interface = gr.Interface(fn=generate_response, inputs="text", outputs="text")
11
- interface.launch(share=True)
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ generator = pipeline("text-generation", model="Writer/Palmyra-Med-70B-32K")
5
 
6
  def generate_response(input_text):
7
  response = generator(input_text, max_length=50)
8
  return response[0]['generated_text1']
9
 
10
  interface = gr.Interface(fn=generate_response, inputs="text", outputs="text")
11
+ interface.launch()