Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
1ce44d9
1
Parent(s):
c7840a3
Update Info
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title: codellama
|
| 3 |
emoji: 🦀
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: yellow
|
|
@@ -7,6 +7,7 @@ sdk: gradio
|
|
| 7 |
sdk_version: 3.41.2
|
| 8 |
app_file: app.py
|
| 9 |
license: mit
|
|
|
|
| 10 |
duplicated_from: mikeee/codellama-13b-python-ggml
|
| 11 |
---
|
| 12 |
|
|
|
|
| 1 |
---
|
| 2 |
+
title: codellama-13b-instruct-gguf
|
| 3 |
emoji: 🦀
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: yellow
|
|
|
|
| 7 |
sdk_version: 3.41.2
|
| 8 |
app_file: app.py
|
| 9 |
license: mit
|
| 10 |
+
pinned: true
|
| 11 |
duplicated_from: mikeee/codellama-13b-python-ggml
|
| 12 |
---
|
| 13 |
|
app.py
CHANGED
|
@@ -206,7 +206,7 @@ def bot(history):
|
|
| 206 |
for elm in generate(user_message, config=config):
|
| 207 |
if flag == 1:
|
| 208 |
logger.debug("in the loop")
|
| 209 |
-
prefix = f"({time.time() - then:.2f}s)
|
| 210 |
flag = 0
|
| 211 |
print(prefix, end="", flush=True)
|
| 212 |
logger.debug(f"{prefix=}")
|
|
@@ -283,7 +283,7 @@ with gr.Blocks(
|
|
| 283 |
with gr.Accordion("🎈 Info", open=False):
|
| 284 |
gr.Markdown(
|
| 285 |
f"""<h5><center>{Path(model_loc).name}</center></h4>
|
| 286 |
-
|
| 287 |
elem_classes="xsmall",
|
| 288 |
)
|
| 289 |
|
|
@@ -296,7 +296,7 @@ with gr.Blocks(
|
|
| 296 |
with gr.Column(scale=5):
|
| 297 |
msg = gr.Textbox(
|
| 298 |
label="Chat Message Box",
|
| 299 |
-
placeholder="Ask me
|
| 300 |
show_label=False,
|
| 301 |
# container=False,
|
| 302 |
lines=6,
|
|
|
|
| 206 |
for elm in generate(user_message, config=config):
|
| 207 |
if flag == 1:
|
| 208 |
logger.debug("in the loop")
|
| 209 |
+
prefix = f"({time.time() - then:.2f}s)\n"
|
| 210 |
flag = 0
|
| 211 |
print(prefix, end="", flush=True)
|
| 212 |
logger.debug(f"{prefix=}")
|
|
|
|
| 283 |
with gr.Accordion("🎈 Info", open=False):
|
| 284 |
gr.Markdown(
|
| 285 |
f"""<h5><center>{Path(model_loc).name}</center></h4>
|
| 286 |
+
initial response typically takes around 60 to 90 seconds, in addition to any queuing time""",
|
| 287 |
elem_classes="xsmall",
|
| 288 |
)
|
| 289 |
|
|
|
|
| 296 |
with gr.Column(scale=5):
|
| 297 |
msg = gr.Textbox(
|
| 298 |
label="Chat Message Box",
|
| 299 |
+
placeholder="Ask me to write some python code, or js/c/rust... codes ... (press Shift+Enter or click Submit to send)",
|
| 300 |
show_label=False,
|
| 301 |
# container=False,
|
| 302 |
lines=6,
|