Debugging app.py and making interface changes (repositioning sliders and changing their colour)

#2
by Addaci - opened
MarineLives org
edited 25 days ago

Key Changes:

Slider Positioning:

The max_new_tokens and temperature sliders are now placed below the "Clear" button in each tab.

Slider Independence:

Each tab has its own sliders for max_new_tokens and temperature, with different default values to operate independently from one another.

Slider Color Change:

Added a custom CSS class to make the slider color blue.

Fixes for Text Generation:

The text generation logic remains the same, but I added detailed logging and ensured that the temperature is passed correctly into the model’s generate function. This should allow the temperature setting to influence the randomness of the generated text properly.

Slider Base Values:

Correct HTR Tab: max_new_tokens = 128, temperature = 0.7
Summarize Legal Text Tab: max_new_tokens = 256, temperature = 0.5
Answer Legal Question Tab: max_new_tokens = 150, temperature = 0.9

Please try this update and let me know if the sliders are now behaving as expected and if the text generation issue has been resolved.

Addaci changed pull request status to merged

Sign up or log in to comment