Louis Kweyamba commited on
Commit
53fdf15
·
1 Parent(s): 72a2086

resolve expose

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,8 +3,8 @@ import openai
3
  import os
4
  import gradio as gr
5
 
6
- #openai.api_key = os.environ["OPENAI_API_KEY"]
7
- openai.api_key = "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"
8
 
9
 
10
  def ask_question(csv_file, user_question):
@@ -28,5 +28,5 @@ def ask_question(csv_file, user_question):
28
  # Use Gradio to build the frontend
29
  inputs = [gr.inputs.File(label="upload your csv file here",type="file"), gr.inputs.Textbox(placeholder="Ask a question about the data")]
30
  outputs = gr.outputs.Textbox()
31
- interface = gr.Interface(ask_question, inputs, outputs, title="Pharmalaki Ai App")
32
  interface.launch()
 
3
  import os
4
  import gradio as gr
5
 
6
+ openai.api_key = os.environ["OPENAI_API_KEY"]
7
+
8
 
9
 
10
  def ask_question(csv_file, user_question):
 
28
  # Use Gradio to build the frontend
29
  inputs = [gr.inputs.File(label="upload your csv file here",type="file"), gr.inputs.Textbox(placeholder="Ask a question about the data")]
30
  outputs = gr.outputs.Textbox()
31
+ interface = gr.Interface(ask_question, inputs, outputs, title="Pharmalaki Ai Version 1.0")
32
  interface.launch()