Spaces:
Sleeping
Sleeping
add changes
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def call_compilex_data():
|
|
| 13 |
with open(txt_file_path, 'r') as file:
|
| 14 |
input_data = file.read()
|
| 15 |
|
| 16 |
-
output = client.
|
| 17 |
|
| 18 |
return "Done Dev ! Data Added"
|
| 19 |
|
|
@@ -114,11 +114,4 @@ gr.ChatInterface(
|
|
| 114 |
concurrency_limit=20,
|
| 115 |
).launch(show_api=True)
|
| 116 |
|
| 117 |
-
def call_compilex_data():
|
| 118 |
-
txt_file_path = "compilerx_data.txt"
|
| 119 |
-
|
| 120 |
-
with open(txt_file_path, 'r') as file:
|
| 121 |
-
input_data = file.read()
|
| 122 |
|
| 123 |
-
output = client.predict(input_data)
|
| 124 |
-
return "Done Dev ! Data Added"
|
|
|
|
| 13 |
with open(txt_file_path, 'r') as file:
|
| 14 |
input_data = file.read()
|
| 15 |
|
| 16 |
+
output = client.post(input_data)
|
| 17 |
|
| 18 |
return "Done Dev ! Data Added"
|
| 19 |
|
|
|
|
| 114 |
concurrency_limit=20,
|
| 115 |
).launch(show_api=True)
|
| 116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
|
|
|
|
|
|