Spaces:
Runtime error
Runtime error
Karthi
commited on
Commit
•
290096d
1
Parent(s):
a005d28
pipeline("text-generation", model="Writer/Palmyra-Med-70B-32K")
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
generator = pipeline("
|
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(
|
|
|
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()
|