Spaces:
Sleeping
Sleeping
Commit
·
3f0ddb7
1
Parent(s):
c1f5f3b
Update app.py
Browse files
app.py
CHANGED
@@ -79,10 +79,10 @@ tokenizer = MarkupLMTokenizer(
|
|
79 |
|
80 |
|
81 |
|
82 |
-
def greet(
|
83 |
|
84 |
-
question =
|
85 |
-
single_html_string =
|
86 |
#single_html_string = "<h1>Grid Fin</h1><table><tr><td><p>Cost Risk</p></td><td><p>None</p></td></tr><tr><td><p>Schedule Risk</p></td><td><p>None</p></td></tr></table><h1>Propulsion</h1><table><tr><td><p>Cost Risk</p></td><td><p>Yes, material overrun</p></td></tr><tr><td><p>Schedule Risk</p></td><td><p>None</p></td></tr></table><h1>Nose Cone</h1><table><tr><td><p>Cost Risk</p></td><td><p>None</p></td></tr><tr><td><p>Schedule Risk</p></td><td><p>None</p></td></tr></table>"
|
87 |
inputs = tokenizer.encode_plus(question, single_html_string, return_tensors="pt", padding="max_length", max_length=30, truncation=True)
|
88 |
|
|
|
79 |
|
80 |
|
81 |
|
82 |
+
def greet(htmlString,userQuestion):
|
83 |
|
84 |
+
question = userQuestion
|
85 |
+
single_html_string = htmlString
|
86 |
#single_html_string = "<h1>Grid Fin</h1><table><tr><td><p>Cost Risk</p></td><td><p>None</p></td></tr><tr><td><p>Schedule Risk</p></td><td><p>None</p></td></tr></table><h1>Propulsion</h1><table><tr><td><p>Cost Risk</p></td><td><p>Yes, material overrun</p></td></tr><tr><td><p>Schedule Risk</p></td><td><p>None</p></td></tr></table><h1>Nose Cone</h1><table><tr><td><p>Cost Risk</p></td><td><p>None</p></td></tr><tr><td><p>Schedule Risk</p></td><td><p>None</p></td></tr></table>"
|
87 |
inputs = tokenizer.encode_plus(question, single_html_string, return_tensors="pt", padding="max_length", max_length=30, truncation=True)
|
88 |
|