Update app.py
Browse files
app.py
CHANGED
|
@@ -58,10 +58,7 @@ def app1_response(img):
|
|
| 58 |
return response.text
|
| 59 |
|
| 60 |
def app2_response(text):
|
| 61 |
-
|
| 62 |
-
resp = text +
|
| 63 |
-
|
| 64 |
-
```
|
| 65 |
=======
|
| 66 |
from twilio.rest import Client
|
| 67 |
|
|
@@ -71,16 +68,15 @@ client = Client(account_sid, auth_token)
|
|
| 71 |
|
| 72 |
message = client.messages.create(
|
| 73 |
from_='+18447195622',
|
| 74 |
-
body='Bot
|
| 75 |
to='+18587331029'
|
| 76 |
)
|
| 77 |
|
| 78 |
print(message.sid)
|
|
|
|
| 79 |
|
| 80 |
-
```
|
| 81 |
-
|
| 82 |
return resp
|
| 83 |
-
|
| 84 |
# gradio block
|
| 85 |
with gr.Blocks() as app1:
|
| 86 |
with gr.Column():
|
|
|
|
| 58 |
return response.text
|
| 59 |
|
| 60 |
def app2_response(text):
|
| 61 |
+
resp = text + """
|
|
|
|
|
|
|
|
|
|
| 62 |
=======
|
| 63 |
from twilio.rest import Client
|
| 64 |
|
|
|
|
| 68 |
|
| 69 |
message = client.messages.create(
|
| 70 |
from_='+18447195622',
|
| 71 |
+
body='Bot message /TWil',
|
| 72 |
to='+18587331029'
|
| 73 |
)
|
| 74 |
|
| 75 |
print(message.sid)
|
| 76 |
+
"""
|
| 77 |
|
|
|
|
|
|
|
| 78 |
return resp
|
| 79 |
+
|
| 80 |
# gradio block
|
| 81 |
with gr.Blocks() as app1:
|
| 82 |
with gr.Column():
|