schoginitoys commited on
Commit
d6c92d4
·
1 Parent(s): 13a1232
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -9,11 +9,15 @@ def generate_code(prompt):
9
  responses = generator(prompt, max_length=150, num_return_sequences=1, temperature=0.5)
10
  return responses[0]['generated_text']
11
 
 
 
 
 
12
  # Create a Gradio Interface
13
  iface = gr.Interface(
14
  fn=generate_code,
15
- inputs=[gr.Textbox(lines=10, label="Type your code description here")],
16
- outputs=[gr.Textbox(label="Generated Code")],
17
  examples=[["Define a Python function to calculate factorial."]],
18
  )
19
 
 
9
  responses = generator(prompt, max_length=150, num_return_sequences=1, temperature=0.5)
10
  return responses[0]['generated_text']
11
 
12
+ input_textbox = gr.Textbox(label="Please click any button below or enter the last 4 digits of your Amazon.in order-id, name and email along with your questions. We shall get back to you!", lines=3)
13
+ outputs = gr.Markdown()
14
+
15
+
16
  # Create a Gradio Interface
17
  iface = gr.Interface(
18
  fn=generate_code,
19
+ inputs=input_textbox, #[gr.Textbox(lines=10, label="Type your code description here")],
20
+ outputs=outputs, #[gr.Textbox(label="Generated Code")],
21
  examples=[["Define a Python function to calculate factorial."]],
22
  )
23