sureshnam9 commited on
Commit
7deedb7
·
verified ·
1 Parent(s): 91367ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -6,6 +6,13 @@ URL = "198.175.88.52"
6
  myport = "8080"
7
  gaudi_device_url = f"http://{URL}:{myport}/generate"
8
 
 
 
 
 
 
 
 
9
  def greet(name):
10
  return "Hello " + name + "!!"
11
 
@@ -15,7 +22,7 @@ def text_gen(url, prompt):
15
 
16
  demo = gr.Interface(
17
  fn=text_gen,
18
- inputs=[gaudi_device_url, "text"],
19
  outputs=["text"], )
20
 
21
  #demo = gr.Interface(fn=greet, inputs="text", outputs="text")
 
6
  myport = "8080"
7
  gaudi_device_url = f"http://{URL}:{myport}/generate"
8
 
9
+ myip_spr = os.environ["myip_spr"]
10
+ myip_clx = os.environ["myip_clx"]
11
+ myport = os.environ["myport"]
12
+
13
+ SPR = f"http://{myip_spr}:{myport}"
14
+ CLX = f"http://{myip_clx}:{myport}"
15
+
16
  def greet(name):
17
  return "Hello " + name + "!!"
18
 
 
22
 
23
  demo = gr.Interface(
24
  fn=text_gen,
25
+ inputs=[gaudi_device_url],
26
  outputs=["text"], )
27
 
28
  #demo = gr.Interface(fn=greet, inputs="text", outputs="text")