Spaces:
Runtime error
Runtime error
GirishKiran
commited on
Commit
•
370ce6d
1
Parent(s):
8f93ec8
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -295,23 +295,17 @@ def ask_me(self, p, q, r , ll_index_name=None, ll_sign_in_member=None):
|
|
295 |
|
296 |
ll_sign_in_member = q
|
297 |
|
298 |
-
|
299 |
-
|
300 |
-
px = p
|
301 |
-
else:
|
302 |
-
px = f'My name is {ll_sign_in_member}, and I want answer to the following: {p} , if you haven\'t found {ll_sign_in_member} , Just say i don\'t have much information on this.'
|
303 |
-
#
|
304 |
resp = ll_engine.query(px)
|
305 |
-
|
|
|
306 |
|
307 |
in_box = [gradio.Textbox(lines=1, label="Your Humana request", placeholder="Your Humana request...see example if you need help.")
|
308 |
,gradio.Radio(["Duc", "Girish", "Mayo"], label="Login Member", value='Duc', info="Who had login?")
|
309 |
,gradio.Radio(["Humana", "Kohli Fighters", "Ally Bank"], label="Login Member", value='Humana', info="Fine-Tune LLM for:")
|
310 |
]
|
311 |
-
out_box = [gradio.Textbox(label="Humana response:")
|
312 |
-
gradio.Radio(["Duc", "Girish", "Mayo"], label="Login Member", value='Duc', info="Who had login?"),
|
313 |
-
gradio.Radio(["Humana", "Kohli Fighters", "Ally Bank"], label="Login Member", value='Humana', info="Fine-Tune LLM for:")
|
314 |
-
]
|
315 |
#
|
316 |
|
317 |
title = "Humana and YML Fine-tune LLM model"
|
@@ -333,8 +327,6 @@ arti = '''
|
|
333 |
</ul>
|
334 |
'''
|
335 |
exp = [
|
336 |
-
['What is my name?'],
|
337 |
-
['Can you tell my prescription and it\'s dosage?'],
|
338 |
['How is my plan changing'],
|
339 |
['Is my current Rx covered in the new plan?'],
|
340 |
['Is my current Doctor still in-network?'],
|
|
|
295 |
|
296 |
ll_sign_in_member = q
|
297 |
|
298 |
+
px = f'My name is {ll_sign_in_member}, and I want answer to the following: {p} , if you haven\'t found {ll_sign_in_member} , Just say i don\'t have much information on this.'
|
299 |
+
print("##### " + px)
|
|
|
|
|
|
|
|
|
300 |
resp = ll_engine.query(px)
|
301 |
+
|
302 |
+
return resp
|
303 |
|
304 |
in_box = [gradio.Textbox(lines=1, label="Your Humana request", placeholder="Your Humana request...see example if you need help.")
|
305 |
,gradio.Radio(["Duc", "Girish", "Mayo"], label="Login Member", value='Duc', info="Who had login?")
|
306 |
,gradio.Radio(["Humana", "Kohli Fighters", "Ally Bank"], label="Login Member", value='Humana', info="Fine-Tune LLM for:")
|
307 |
]
|
308 |
+
out_box = [gradio.Textbox(label="Humana response:")]
|
|
|
|
|
|
|
309 |
#
|
310 |
|
311 |
title = "Humana and YML Fine-tune LLM model"
|
|
|
327 |
</ul>
|
328 |
'''
|
329 |
exp = [
|
|
|
|
|
330 |
['How is my plan changing'],
|
331 |
['Is my current Rx covered in the new plan?'],
|
332 |
['Is my current Doctor still in-network?'],
|