prithivMLmods
commited on
Commit
•
be896f0
1
Parent(s):
84067cd
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,11 @@ footer {
|
|
12 |
}
|
13 |
'''
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
ACCESS_TOKEN = os.getenv("HF_TOKEN")
|
16 |
|
17 |
client = OpenAI(
|
@@ -48,11 +53,11 @@ def respond(
|
|
48 |
messages=messages,
|
49 |
):
|
50 |
token = message.choices[0].delta.content
|
51 |
-
|
52 |
response += token
|
53 |
yield response
|
54 |
|
55 |
demo = gr.ChatInterface(
|
|
|
56 |
respond,
|
57 |
additional_inputs=[
|
58 |
gr.Textbox(value="", label="System message", visible=False),
|
|
|
12 |
}
|
13 |
'''
|
14 |
|
15 |
+
DESCRIPTION = """
|
16 |
+
|
17 |
+
|
18 |
+
"""
|
19 |
+
|
20 |
ACCESS_TOKEN = os.getenv("HF_TOKEN")
|
21 |
|
22 |
client = OpenAI(
|
|
|
53 |
messages=messages,
|
54 |
):
|
55 |
token = message.choices[0].delta.content
|
|
|
56 |
response += token
|
57 |
yield response
|
58 |
|
59 |
demo = gr.ChatInterface(
|
60 |
+
gr.Markdown(DESCRIPTION)
|
61 |
respond,
|
62 |
additional_inputs=[
|
63 |
gr.Textbox(value="", label="System message", visible=False),
|