ShebMichel commited on
Commit
b61e085
·
verified ·
1 Parent(s): 2e9663a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -54,17 +54,17 @@ def load_model(model_name):
54
 
55
 
56
 
57
- def model_launch(input,first_model):
58
- #return f"Model: {selected_output}\nResponse to: {input}"
59
- geomodel_llm=load_model(selected_output)
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 = {}
 
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 = {}