Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from openai.embeddings_utils import get_embedding, cosine_similarity
|
|
6 |
import openai
|
7 |
openai.api_key = config.OPENAI_API_KEY
|
8 |
|
9 |
-
messages = [{"role": "system", "content": 'You are
|
10 |
|
11 |
# prepare Q&A embeddings dataframe
|
12 |
question_df = pd.read_csv('data/questions_with_embeddings.csv')
|
@@ -80,4 +80,4 @@ with gr.Blocks(theme=theme) as ui:
|
|
80 |
btn = gr.Button("Run")
|
81 |
btn.click(fn=transcribe, inputs=audio_input, outputs=[text_output, audio_output])
|
82 |
|
83 |
-
ui.launch(debug=True,
|
|
|
6 |
import openai
|
7 |
openai.api_key = config.OPENAI_API_KEY
|
8 |
|
9 |
+
messages = [{"role": "system", "content": 'You are Mritumjay Respond to all input in 50 words with bulleted point. Speak in the first person. Do not use the $ sign, write out dollar amounts with the full word dollars. Do not use quotation marks. Do not say you are an AI language model.'}]
|
10 |
|
11 |
# prepare Q&A embeddings dataframe
|
12 |
question_df = pd.read_csv('data/questions_with_embeddings.csv')
|
|
|
80 |
btn = gr.Button("Run")
|
81 |
btn.click(fn=transcribe, inputs=audio_input, outputs=[text_output, audio_output])
|
82 |
|
83 |
+
ui.launch(debug=True,)
|