Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
•
aaad161
1
Parent(s):
4159401
Update dedent in info
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import platform
|
|
6 |
import time
|
7 |
from dataclasses import asdict, dataclass
|
8 |
from pathlib import Path
|
|
|
9 |
from types import SimpleNamespace
|
10 |
|
11 |
import gradio as gr
|
@@ -352,12 +353,12 @@ with gr.Blocks(
|
|
352 |
# """<center><a href="https://huggingface.co/spaces/mikeee/mpt-30b-chat?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate"></a> and spin a CPU UPGRADE to avoid the queue</center>"""
|
353 |
# )
|
354 |
gr.Markdown(
|
355 |
-
f"""<h5><center>{Path(model_loc).name}</center></h4>
|
356 |
|
357 |
Most examples are meant for another model.
|
358 |
You probably should try to test
|
359 |
-
some related prompts.
|
360 |
-
""",
|
361 |
elem_classes="xsmall",
|
362 |
)
|
363 |
|
|
|
6 |
import time
|
7 |
from dataclasses import asdict, dataclass
|
8 |
from pathlib import Path
|
9 |
+
from textwrap import dedent
|
10 |
from types import SimpleNamespace
|
11 |
|
12 |
import gradio as gr
|
|
|
353 |
# """<center><a href="https://huggingface.co/spaces/mikeee/mpt-30b-chat?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate"></a> and spin a CPU UPGRADE to avoid the queue</center>"""
|
354 |
# )
|
355 |
gr.Markdown(
|
356 |
+
dedent(f"""<h5><center>{Path(model_loc).name}</center></h4>
|
357 |
|
358 |
Most examples are meant for another model.
|
359 |
You probably should try to test
|
360 |
+
some related prompts. For example:\n
|
361 |
+
{prompt_template}"""),
|
362 |
elem_classes="xsmall",
|
363 |
)
|
364 |
|