Add application file
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def get_response(text):
|
|
47 |
Targeting NRF2-directed cellular metabolism is an effective strategy for development of novel treatments for head and neck cancer.'},
|
48 |
{'role':'assistant', 'content':'NRF2, G6PD, and TKT is important in c-MYC up-regulated head and neck squamous cell carcinoma'}
|
49 |
]
|
50 |
-
messages
|
51 |
response = get_completion_from_messages(messages, temperature=0)
|
52 |
return response
|
53 |
|
@@ -81,4 +81,4 @@ def gradio():
|
|
81 |
|
82 |
|
83 |
if __name__ == '__main__':
|
84 |
-
gradio()
|
|
|
47 |
Targeting NRF2-directed cellular metabolism is an effective strategy for development of novel treatments for head and neck cancer.'},
|
48 |
{'role':'assistant', 'content':'NRF2, G6PD, and TKT is important in c-MYC up-regulated head and neck squamous cell carcinoma'}
|
49 |
]
|
50 |
+
messages.append({'role':'user', 'content':f"Abstract: {text}"})
|
51 |
response = get_completion_from_messages(messages, temperature=0)
|
52 |
return response
|
53 |
|
|
|
81 |
|
82 |
|
83 |
if __name__ == '__main__':
|
84 |
+
gradio()
|