svummidi commited on
Commit
c6287f2
1 Parent(s): 8ca4090

Update app.py

Browse files

Formatting changes

Files changed (1) hide show
  1. app.py +7 -12
app.py CHANGED
@@ -6,16 +6,6 @@ import sys
6
  import os
7
 
8
 
9
- #openai.api_key = "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"
10
-
11
- ### This is the code for the chatbot interface ###
12
- ### INSTRUCTIONS: ###
13
- ### 1. Run this file in the terminal: python3 llamaTest.py ###
14
- ### 2. Copy the link that appears in the terminal and paste it into your browser
15
- # there will be 2 links - one local and one global, you can use either ###
16
-
17
-
18
-
19
  def chatbot(indexName, input_text):
20
  """
21
  Chatbot function that takes in a prompt and returns a response
@@ -26,9 +16,14 @@ def chatbot(indexName, input_text):
26
 
27
 
28
  iface = gr.Interface(fn=chatbot,
29
- inputs= [ gr.Dropdown(["RetroFeedback", "WizFeedback", "Passwordless"], type="value", value="RetroFeedback", label="Select Pulse Data"), gr.Textbox(lines=7, label="Ask any question", placeholder='What is the summary?')],
 
 
 
30
  outputs="text",
31
  title="NLP Demo for Chat Interface")
32
 
33
 
34
- iface.launch(auth=('axiamatic', os.environ['LOGIN_PASS']), auth_message='For access, please check my Slack profile or contact me in Slack.', share=False)
 
 
 
6
  import os
7
 
8
 
 
 
 
 
 
 
 
 
 
 
9
  def chatbot(indexName, input_text):
10
  """
11
  Chatbot function that takes in a prompt and returns a response
 
16
 
17
 
18
  iface = gr.Interface(fn=chatbot,
19
+ inputs= [
20
+ gr.Dropdown(["RetroFeedback", "WizFeedback", "Passwordless"],
21
+ type="value", value="RetroFeedback", label="Select Pulse Data"),
22
+ gr.Textbox(lines=7, label="Ask any question", placeholder='What is the summary?')],
23
  outputs="text",
24
  title="NLP Demo for Chat Interface")
25
 
26
 
27
+ iface.launch(auth=('axiamatic', os.environ['LOGIN_PASS']),
28
+ auth_message='For access, please check my Slack profile or contact me in Slack.',
29
+ share=False)