Spaces:
Running
Running
Commit
·
f705453
1
Parent(s):
67514ef
update: theme
Browse files
app.py
CHANGED
|
@@ -2,9 +2,8 @@ import json
|
|
| 2 |
from typing import Generator, List
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
-
from openai import OpenAI
|
| 6 |
-
|
| 7 |
from crop_utils import get_image_crop
|
|
|
|
| 8 |
from prompts import (
|
| 9 |
get_chat_system_prompt,
|
| 10 |
get_live_event_system_prompt,
|
|
@@ -13,9 +12,8 @@ from prompts import (
|
|
| 13 |
get_street_interview_system_prompt,
|
| 14 |
)
|
| 15 |
from transcript import TranscriptProcessor
|
| 16 |
-
from utils import css, get_transcript_for_url, head, js
|
| 17 |
from utils import openai_tools as tools
|
| 18 |
-
from utils import setup_openai_key
|
| 19 |
|
| 20 |
client = OpenAI()
|
| 21 |
|
|
@@ -347,9 +345,6 @@ def create_chat_interface():
|
|
| 347 |
js=js,
|
| 348 |
theme=gr.themes.Default(
|
| 349 |
font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"]
|
| 350 |
-
).set(
|
| 351 |
-
background_fill_secondary="#181818",
|
| 352 |
-
background_fill_secondary_dark="#181818",
|
| 353 |
),
|
| 354 |
) as demo:
|
| 355 |
chatbot = gr.Chatbot(
|
|
|
|
| 2 |
from typing import Generator, List
|
| 3 |
|
| 4 |
import gradio as gr
|
|
|
|
|
|
|
| 5 |
from crop_utils import get_image_crop
|
| 6 |
+
from openai import OpenAI
|
| 7 |
from prompts import (
|
| 8 |
get_chat_system_prompt,
|
| 9 |
get_live_event_system_prompt,
|
|
|
|
| 12 |
get_street_interview_system_prompt,
|
| 13 |
)
|
| 14 |
from transcript import TranscriptProcessor
|
| 15 |
+
from utils import css, get_transcript_for_url, head, js, setup_openai_key
|
| 16 |
from utils import openai_tools as tools
|
|
|
|
| 17 |
|
| 18 |
client = OpenAI()
|
| 19 |
|
|
|
|
| 345 |
js=js,
|
| 346 |
theme=gr.themes.Default(
|
| 347 |
font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"]
|
|
|
|
|
|
|
|
|
|
| 348 |
),
|
| 349 |
) as demo:
|
| 350 |
chatbot = gr.Chatbot(
|