Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,12 @@ def CustomChatGPT(Question):
|
|
| 15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
| 16 |
return ChatGPT_reply
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
body {
|
| 20 |
background-color: white;
|
| 21 |
}
|
|
@@ -39,13 +44,6 @@ button {
|
|
| 39 |
color: #FFFFFF;
|
| 40 |
}
|
| 41 |
'''
|
| 42 |
-
|
| 43 |
-
demo = gr.Interface(
|
| 44 |
-
fn=CustomChatGPT,
|
| 45 |
-
inputs=gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?"),
|
| 46 |
-
outputs=gr.Textbox(label="Get a simple answer in return:"),
|
| 47 |
-
title="Web(GPT)3",
|
| 48 |
-
css=custom_css
|
| 49 |
)
|
| 50 |
|
| 51 |
|
|
|
|
| 15 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
| 16 |
return ChatGPT_reply
|
| 17 |
|
| 18 |
+
demo = gr.Interface(
|
| 19 |
+
fn=CustomChatGPT,
|
| 20 |
+
inputs=gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?"),
|
| 21 |
+
outputs=gr.Textbox(label="Get a simple answer in return:"),
|
| 22 |
+
title="Web(GPT)3",
|
| 23 |
+
css='''
|
| 24 |
body {
|
| 25 |
background-color: white;
|
| 26 |
}
|
|
|
|
| 44 |
color: #FFFFFF;
|
| 45 |
}
|
| 46 |
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
)
|
| 48 |
|
| 49 |
|