Dhahlan2000 commited on
Commit
ba1c748
·
verified ·
1 Parent(s): bbfdd64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.result
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",