Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,6 +110,20 @@ Final Response:
|
|
| 110 |
"""
|
| 111 |
|
| 112 |
return prompt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
from gradio_client import Client
|
| 114 |
|
| 115 |
def ask_wasm(txt):
|
|
@@ -130,7 +144,7 @@ def t2t(text, namn_model):
|
|
| 130 |
out = ASGAI.Soft.predictAPI(text)
|
| 131 |
|
| 132 |
txt=format_cyber_response(text,str(out))
|
| 133 |
-
anwai=
|
| 134 |
return anwai
|
| 135 |
|
| 136 |
def t2seq(text, namn_model):
|
|
|
|
| 110 |
"""
|
| 111 |
|
| 112 |
return prompt
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
from gradio_client import Client
|
| 116 |
+
client = Client("wasmdashai/T2T")
|
| 117 |
+
def ask_ai(message ):
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
result = client.predict(
|
| 122 |
+
text=message,
|
| 123 |
+
key="AIzaSyC85_3TKmiXtOpwybhSFThZdF1nGKlxU5c",
|
| 124 |
+
api_name="/predict"
|
| 125 |
+
)
|
| 126 |
+
return result
|
| 127 |
from gradio_client import Client
|
| 128 |
|
| 129 |
def ask_wasm(txt):
|
|
|
|
| 144 |
out = ASGAI.Soft.predictAPI(text)
|
| 145 |
|
| 146 |
txt=format_cyber_response(text,str(out))
|
| 147 |
+
anwai=ask_ai(txt)
|
| 148 |
return anwai
|
| 149 |
|
| 150 |
def t2seq(text, namn_model):
|