Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ if view == "Artwork Explorer":
|
|
101 |
result = describer(prompt, max_length=100, truncation=True, do_sample=True)[0]["generated_text"]
|
102 |
return result.replace(prompt, "").strip()
|
103 |
else:
|
104 |
-
prompt_flan = f"Write a short description of this artwork:
|
105 |
|
106 |
{prompt}"
|
107 |
result = describer(prompt_flan, max_length=100, truncation=True)[0]["generated_text"]
|
|
|
101 |
result = describer(prompt, max_length=100, truncation=True, do_sample=True)[0]["generated_text"]
|
102 |
return result.replace(prompt, "").strip()
|
103 |
else:
|
104 |
+
prompt_flan = f"Write a short description of this artwork:"
|
105 |
|
106 |
{prompt}"
|
107 |
result = describer(prompt_flan, max_length=100, truncation=True)[0]["generated_text"]
|