Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -227,7 +227,8 @@ def interactive_chat(question, openai_api_key, state=None):
|
|
| 227 |
demo = gr.Interface(
|
| 228 |
fn=interactive_chat,
|
| 229 |
inputs=[
|
| 230 |
-
gr.Textbox(lines=2, placeholder="Ask a cancer-related question...", elem_id="query_input")
|
|
|
|
| 231 |
],
|
| 232 |
outputs=gr.Textbox(lines=10, elem_id="Output"),
|
| 233 |
title="🧬 Cancer Research Chatbot",
|
|
@@ -257,6 +258,10 @@ demo.css = """
|
|
| 257 |
#query_inputs {
|
| 258 |
background-color: #E8F5E9; /* Light green background */
|
| 259 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 260 |
|
| 261 |
#Output {
|
| 262 |
border: 2px solid #2196F3; /* Blue border to indicate information */
|
|
|
|
| 227 |
demo = gr.Interface(
|
| 228 |
fn=interactive_chat,
|
| 229 |
inputs=[
|
| 230 |
+
gr.Textbox(lines=2, placeholder="Ask a cancer-related question...", elem_id="query_input"),
|
| 231 |
+
gr.Textbox(lines=2, placeholder="openai_api_key", elem_id="openai_key")
|
| 232 |
],
|
| 233 |
outputs=gr.Textbox(lines=10, elem_id="Output"),
|
| 234 |
title="🧬 Cancer Research Chatbot",
|
|
|
|
| 258 |
#query_inputs {
|
| 259 |
background-color: #E8F5E9; /* Light green background */
|
| 260 |
}
|
| 261 |
+
#openai_key {
|
| 262 |
+
background-color: #E8F5E9;
|
| 263 |
+
|
| 264 |
+
}
|
| 265 |
|
| 266 |
#Output {
|
| 267 |
border: 2px solid #2196F3; /* Blue border to indicate information */
|