Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,17 +54,17 @@ def load_model(model_name):
|
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
-
def model_launch(input
|
| 58 |
-
|
| 59 |
-
geomodel_llm=load_model(
|
| 60 |
-
template = "Instruction:\n{instruction}\n\nResponse:\n{response}"
|
| 61 |
-
prompt = template.format(
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
)
|
| 65 |
-
out = geomodel_llm.generate(prompt, max_length=1024)
|
| 66 |
-
ind = out.index('Response') + len('Response')+2
|
| 67 |
-
return out[ind:]
|
| 68 |
|
| 69 |
# Global variable to store loaded JSON data
|
| 70 |
loaded_data = {}
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
+
def model_launch(input):
|
| 58 |
+
return f"Model: {first_model}\n\nResponse to: {input}"
|
| 59 |
+
# geomodel_llm=load_model(first_model)
|
| 60 |
+
# template = "Instruction:\n{instruction}\n\nResponse:\n{response}"
|
| 61 |
+
# prompt = template.format(
|
| 62 |
+
# instruction=input,
|
| 63 |
+
# response="",
|
| 64 |
+
# )
|
| 65 |
+
# out = geomodel_llm.generate(prompt, max_length=1024)
|
| 66 |
+
# ind = out.index('Response') + len('Response')+2
|
| 67 |
+
# return out[ind:]
|
| 68 |
|
| 69 |
# Global variable to store loaded JSON data
|
| 70 |
loaded_data = {}
|