Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def transliterate_to_sinhala(text):
|
|
71 |
|
72 |
def conversation_predict(text):
|
73 |
interface = gr.interface.load("microsoft/Phi-3-mini-4k-instruct")
|
74 |
-
return interface
|
75 |
# return client.text_generation(text, return_full_text=False)
|
76 |
# pipe = pipeline(
|
77 |
# "text-generation",
|
|
|
71 |
|
72 |
def conversation_predict(text):
|
73 |
interface = gr.interface.load("microsoft/Phi-3-mini-4k-instruct")
|
74 |
+
return interface([text])[0]
|
75 |
# return client.text_generation(text, return_full_text=False)
|
76 |
# pipe = pipeline(
|
77 |
# "text-generation",
|