andrewsiah
commited on
Upload folder using huggingface_hub
Browse files
.venv/lib/python3.9/site-packages/gradio/launches.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"launches":
|
|
|
1 |
+
{"launches": 8}
|
.venv/lib/python3.9/site-packages/pygments/__pycache__/unistring.cpython-39.pyc
ADDED
Binary file (31.2 kB). View file
|
|
.venv/lib/python3.9/site-packages/pygments/lexers/__pycache__/python.cpython-39.pyc
ADDED
Binary file (29.6 kB). View file
|
|
__pycache__/eval.cpython-39.pyc
CHANGED
Binary files a/__pycache__/eval.cpython-39.pyc and b/__pycache__/eval.cpython-39.pyc differ
|
|
eval.py
CHANGED
@@ -73,14 +73,14 @@ def chat_response(message, history, model):
|
|
73 |
if response and response.choices:
|
74 |
return response.choices[0].message.content
|
75 |
else:
|
76 |
-
return f"Error:
|
77 |
|
78 |
def create_chat_interface(model):
|
79 |
return gr.ChatInterface(
|
80 |
fn=lambda message, history: chat_response(message, history, model),
|
81 |
-
chatbot=gr.Chatbot(height=400,
|
82 |
textbox=gr.Textbox(placeholder="Message", container=False, scale=7),
|
83 |
-
title=f"Choice {model}",
|
84 |
description="",
|
85 |
theme="dark",
|
86 |
# examples=[["what's up"]],
|
|
|
73 |
if response and response.choices:
|
74 |
return response.choices[0].message.content
|
75 |
else:
|
76 |
+
return f"Error: Please retry or contact support if retried more than twice."
|
77 |
|
78 |
def create_chat_interface(model):
|
79 |
return gr.ChatInterface(
|
80 |
fn=lambda message, history: chat_response(message, history, model),
|
81 |
+
chatbot=gr.Chatbot(height=400, label=f"Choice {model}"),
|
82 |
textbox=gr.Textbox(placeholder="Message", container=False, scale=7),
|
83 |
+
# title=f"Choice {model}",
|
84 |
description="",
|
85 |
theme="dark",
|
86 |
# examples=[["what's up"]],
|