MohammedNasser commited on
Commit
e70a2d0
1 Parent(s): 2cc1efc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,7 +19,7 @@ import gradio as gr
19
  load_dotenv()
20
  secret_key = os.getenv("GROQ_API_KEY")
21
 
22
- #os.environ["GROQ_API_KEY"] =
23
  embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-mpnet-base-v2")
24
 
25
  # File directories
@@ -123,7 +123,7 @@ def chatbot_interface(pdf_file, user_input):
123
 
124
 
125
  with gr.Blocks() as demo:
126
- gr.Markdown("<h1 style='text-align:center;'>ديمو بوت للقاء مركز حضرموت</h1>")
127
 
128
  with gr.Row():
129
  pdf_input = gr.File(label="اختر ملف 📑 PDF للدردشة", type="filepath")
@@ -140,4 +140,4 @@ with gr.Blocks() as demo:
140
 
141
  submit_button.click(chatbot_interface, inputs=[pdf_input, user_input], outputs=[output_text, audio_output])
142
 
143
- demo.launch(share=True)
 
19
  load_dotenv()
20
  secret_key = os.getenv("GROQ_API_KEY")
21
 
22
+ os.environ["GROQ_API_KEY"] = secret_key
23
  embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-mpnet-base-v2")
24
 
25
  # File directories
 
123
 
124
 
125
  with gr.Blocks() as demo:
126
+ gr.Markdown("<h1 style='text-align:center;'>الشات بوت العربي لـ PDF</h1>")
127
 
128
  with gr.Row():
129
  pdf_input = gr.File(label="اختر ملف 📑 PDF للدردشة", type="filepath")
 
140
 
141
  submit_button.click(chatbot_interface, inputs=[pdf_input, user_input], outputs=[output_text, audio_output])
142
 
143
+ demo.launch()