tlskillman commited on
Commit
ecca2ac
·
verified ·
1 Parent(s): 9682e81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -9,20 +9,14 @@ import uuid
9
  import os
10
  from datetime import datetime
11
  import urllib.parse
12
- # import openai
13
 
14
  from dotenv import load_dotenv
15
 
16
  load_dotenv()
17
  hugging_face_api_key = os.getenv("HUGGING_FACE_API_KEY")
18
- openai_api_key = os.getenv("OPENAI_API_KEY")
19
 
20
- # Set the API key for OpenAI
21
- # openai.api_key = openai_api_key
22
-
23
- import requests
24
-
25
- openai_key = openai_api_key
26
 
27
  user_prompt_examples =[
28
  "Find me the stars in the hayedes cluster.",
@@ -229,7 +223,7 @@ with gr.Blocks() as demo:
229
 
230
  create_tap_url_bt = gr.Button("Create TAP URL")
231
  download_data_output = gr.Markdown()
232
- create_tap_url_bt.click(fn=create_markdown_url_from_query, inputs=complete_query_output,
233
  outputs=[download_data_output])
234
 
235
  #demo.launch(server_name="0.0.0.0", server_port=7861, share=True, debug=True)
 
9
  import os
10
  from datetime import datetime
11
  import urllib.parse
 
12
 
13
  from dotenv import load_dotenv
14
 
15
  load_dotenv()
16
  hugging_face_api_key = os.getenv("HUGGING_FACE_API_KEY")
17
+ openai_key = os.getenv("OPENAI_API_KEY")
18
 
19
+ # openai_key = openai_api_key
 
 
 
 
 
20
 
21
  user_prompt_examples =[
22
  "Find me the stars in the hayedes cluster.",
 
223
 
224
  create_tap_url_bt = gr.Button("Create TAP URL")
225
  download_data_output = gr.Markdown()
226
+ create_tap_url_bt.click(fn=create_markdown_url_from_query, inputs=the_query_output,
227
  outputs=[download_data_output])
228
 
229
  #demo.launch(server_name="0.0.0.0", server_port=7861, share=True, debug=True)