Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
1a7ca47
1
Parent(s):
d149d9a
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,11 @@ import time
|
|
2 |
import logging
|
3 |
import gradio as gr
|
4 |
from typing import Iterable
|
|
|
|
|
|
|
|
|
|
|
5 |
theme = gr.themes.Glass(
|
6 |
primary_hue="orange",
|
7 |
secondary_hue="neutral",
|
@@ -9,12 +14,6 @@ theme = gr.themes.Glass(
|
|
9 |
)
|
10 |
|
11 |
with gr.Blocks(theme=theme) as demo:
|
12 |
-
|
13 |
-
|
14 |
-
logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
|
15 |
-
logging.warning("READY. App started...")
|
16 |
-
|
17 |
-
|
18 |
class Chat:
|
19 |
default_system_prompt = "A conversation between a user and an LLM-based AI assistant. The assistant gives helpful and honest answers."
|
20 |
system_format = "<|im_start|>system\n{}<|im_end|>\n"
|
|
|
2 |
import logging
|
3 |
import gradio as gr
|
4 |
from typing import Iterable
|
5 |
+
|
6 |
+
logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
|
7 |
+
logging.warning("READY. App started...")
|
8 |
+
|
9 |
+
|
10 |
theme = gr.themes.Glass(
|
11 |
primary_hue="orange",
|
12 |
secondary_hue="neutral",
|
|
|
14 |
)
|
15 |
|
16 |
with gr.Blocks(theme=theme) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
class Chat:
|
18 |
default_system_prompt = "A conversation between a user and an LLM-based AI assistant. The assistant gives helpful and honest answers."
|
19 |
system_format = "<|im_start|>system\n{}<|im_end|>\n"
|