ajwthompson commited on
Commit
936abfc
·
1 Parent(s): 4919dd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -47,7 +47,8 @@ class ChatWrapper:
47
  self.lock.release()
48
  return history, history
49
 
50
-
 
51
  def echo(name, request: gr.Request):
52
  if request:
53
  print("Request headers dictionary:", request.headers)
@@ -59,7 +60,7 @@ def my_inference_function(name):
59
  return "Hello " + name + "!"
60
 
61
  gradio_interface = gr.Interface(
62
- fn = my_inference_function,
63
  inputs = "text",
64
  outputs = "text"
65
  )
 
47
  self.lock.release()
48
  return history, history
49
 
50
+ chat = ChatWrapper()
51
+
52
  def echo(name, request: gr.Request):
53
  if request:
54
  print("Request headers dictionary:", request.headers)
 
60
  return "Hello " + name + "!"
61
 
62
  gradio_interface = gr.Interface(
63
+ fn = chat,
64
  inputs = "text",
65
  outputs = "text"
66
  )