Spaces:
Sleeping
Sleeping
Commit
·
a6ca9f1
1
Parent(s):
fb664e1
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def main():
|
|
11 |
st.session_state["generated_widget_id"] = None
|
12 |
|
13 |
st.title("Prebid Config Generator")
|
14 |
-
st.write("Enter a Prebid config setting, such as 'bidderTimeout', and get a generated Prebid config output starting from that setting onward. Using '{' will generate a Prebid config from the beginning. The model currently has a capped output of
|
15 |
|
16 |
st.subheader("Intended Uses")
|
17 |
st.write("This model is designed to assist publishers in understanding and exploring how most and advanced publishers configure their Prebid settings. It can serve as a valuable reference to gain insights into common configurations, best practices, and different approaches used by publishers across various domains. The model should be seen as a helpful tool to gain inspiration and understanding of common Prebid settings but not as a substitute for thorough testing and manual review of the final configurations.")
|
@@ -48,7 +48,7 @@ def main():
|
|
48 |
st.write("Generating Output...")
|
49 |
|
50 |
# Generate text based on user input
|
51 |
-
generated_text = generator(user_input, max_length=
|
52 |
|
53 |
# Clear 'Generating Output' message and display the generated text
|
54 |
output_placeholder.empty()
|
|
|
11 |
st.session_state["generated_widget_id"] = None
|
12 |
|
13 |
st.title("Prebid Config Generator")
|
14 |
+
st.write("Enter a Prebid config setting, such as 'bidderTimeout', and get a generated Prebid config output starting from that setting onward. Using '{' will generate a Prebid config from the beginning. The model currently has a capped output of 1000 characters.")
|
15 |
|
16 |
st.subheader("Intended Uses")
|
17 |
st.write("This model is designed to assist publishers in understanding and exploring how most and advanced publishers configure their Prebid settings. It can serve as a valuable reference to gain insights into common configurations, best practices, and different approaches used by publishers across various domains. The model should be seen as a helpful tool to gain inspiration and understanding of common Prebid settings but not as a substitute for thorough testing and manual review of the final configurations.")
|
|
|
48 |
st.write("Generating Output...")
|
49 |
|
50 |
# Generate text based on user input
|
51 |
+
generated_text = generator(user_input, max_length=1000, num_return_sequences=1)[0]["generated_text"]
|
52 |
|
53 |
# Clear 'Generating Output' message and display the generated text
|
54 |
output_placeholder.empty()
|